<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
    <!ENTITY copy "&#169;">
    <!ENTITY nbsp "&#160;">
    <!ENTITY laquo "&#171;">
    <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>  

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">

       <div class="contenthead">    <xsl:call-template name="Create_Path">
          <xsl:with-param name="last" select="/page/content/Main/form/name"></xsl:with-param>
        </xsl:call-template>
        
       <div class="top">
        <span class="title"><xsl:value-of select="Main/Title" /></span>
        
       </div>
       
        </div>
     
     
       
    <form action="" method="post" name="form" id="form">
       
<div class="article">
   <xsl:if test="Main/form/@sent = 1">
   <xsl:if test="Main/form/@error = 1">
                  <xsl:attribute name="class">massage_no</xsl:attribute>
                </xsl:if>
                <xsl:if test="Main/form/@error = 0">
                  <xsl:attribute name="class">massage_yes</xsl:attribute>
                </xsl:if>
                <xsl:value-of select="Main/form/@message" />
             
            </xsl:if>
           
             
              <fieldset>
               <ul class="editlist"><li> <label>Наследовать от</label>
                
                  <select name="parent_id">
                    <option value="0">Не наследовать</option>
                    <xsl:for-each select="Main/form/parent_id/row">                      
                      <option value="{id}">
                        <xsl:if test="@active">
                          <xsl:attribute name="selected">selected</xsl:attribute>
                        </xsl:if>
                        <xsl:value-of select="name" />
                      </option>
                    </xsl:for-each>
                  </select>
                
              </li>
           
              <li>
                <label>Название Роли (только латиницей)</label>
                
                  <input name="name" type="text" id="title" value="{Main/form/name}" size="70" class="broad100"/>
               
              </li>
              
              <li>
                <label>Польное имя роли</label>
                
                  <input name="name_full" type="text" value="{Main/form/name_full}" size="70" class="broad100"/>
                
              </li>

              <li>
                <label>Описание</label>
                
                  <textarea name="desc" class="broad100">
                    <xsl:value-of select="Main/form/desc"/>
                  </textarea>
               
              </li>  </ul></fieldset>            
                               
               
      </div>
        <div class="submitbox">
                <input name="save" type="submit" id="save" style="font-weight: bold;" value="Сохранить" />
              </div>
            </form> 
  </xsl:template>  
  
</xsl:stylesheet>